package daoImpl;

import entity.Floor;
import entity.Post;
import entity.Reply;
import entity.Topic;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * Created by miaoyu on 2017/7/12.
 */
public class Test {
    public static void main(String[] args) {

     /*   Post post = new Post();
        post.setTopicID(1);
        post.setUserID(1);
        post.setTitle("timeTest");
        Date now = Calendar.getInstance().getTime();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        post.setTime(sdf.format(now));
        post.setContent("测试时间格式");*/

       /* PostDaoImpl postDao = new PostDaoImpl();
        postDao.deletePost(2);
*/
        Date now = Calendar.getInstance().getTime();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Reply reply = new Reply();
        reply.setUserID(1);
        reply.setReplyID(15);
        reply.setTime(sdf.format(now));
        reply.setContent("自己评论自己");
        ReplyDapImpl dap = new ReplyDapImpl();
        dap.addReply(reply);




    }
}
